<el-dialog :close-on-click-modal="false"  :close-on-press-escape="false"  class="dialogStyleBase" title="资产设置" width="500px" :visible.sync="mixinEdit_editVisible"
    :before-close="function(){mixinEdit_editBoxClose('editForm')}" append-to-body>
    <div v-loading="false">
        <el-form ref="editForm" :model="form" label-width="100px" label-position="left">
            <LayoutCell>
                <el-form-item label="按比例返还">
                    <el-radio-group v-model="form.status" @change="validate">
                        <el-radio :label="1">开启</el-radio>
                        <el-radio :label="0">关闭</el-radio>
                    </el-radio-group>
                </el-form-item>
                <el-form-item v-if="form.status" label="比例设置" prop="cost_ratio">
                    <el-input v-model="form.cost_ratio" style="width: 300px;" :disabled="!form.status">
                        <template slot="prepend">商品实付金额的</template>
                        <template slot="append">%</template>
                    </el-input>
                </el-form-item>
                <el-form-item label="结算方式">
                    <el-radio-group v-model="form.type" @change="validate">
                        <el-radio :label="1">付款后</el-radio>
                        <el-radio :label="2">完成后</el-radio>
                    </el-radio-group>
                </el-form-item>
            </LayoutCell>

        </el-form>
    </div>
    <div slot="footer">
        <el-row>
            <el-col :span="12" style="text-align: left;">
                <el-button @click="mixinEdit_resetForm('editForm')">重 置</el-button>
            </el-col>
            <el-col :span="12">
                <el-button @click="mixinEdit_editBoxClose('editForm')">取 消</el-button>
                <el-button type="primary" @click="setting({model:'form',ref:'editForm'})">确
                    定</el-button>
            </el-col>
        </el-row>
    </div>
</el-dialog>